Skip to content

Conversation

@lslusarczyk
Copy link
Contributor

@lslusarczyk lslusarczyk commented Sep 9, 2024

  • excessive semicolons
  • unused variables
  • use python3.6 friendly "universal_newlines" alias instead of "text" param

@lslusarczyk lslusarczyk requested review from a team as code owners September 9, 2024 09:54
@github-actions github-actions bot added loader Loader related feature/bug common Changes or additions to common utilities conformance Conformance test suite issues. level-zero L0 adapter specific issues sanitizer Sanitizer layer issues/changes/specification labels Sep 9, 2024
@lslusarczyk lslusarczyk force-pushed the compilation_fixes_for_sles branch from fcaa71c to 3115127 Compare September 9, 2024 10:46
@pbalcer
Copy link
Contributor

pbalcer commented Sep 9, 2024

You need to format your code changes. make cppformat.

@lslusarczyk lslusarczyk force-pushed the compilation_fixes_for_sles branch from 3115127 to b82b241 Compare September 10, 2024 05:28
@lslusarczyk lslusarczyk force-pushed the compilation_fixes_for_sles branch 2 times, most recently from e88e2b4 to 947951c Compare September 23, 2024 09:22
@lukaszstolarczuk
Copy link
Contributor

👍

@lslusarczyk
Copy link
Contributor Author

lslusarczyk commented Oct 3, 2024

@pbalcer , can you take a look again and if all is OK, then merge this?
Only OpenCL checks fail (as always). Llvm tests pass with this change: intel/llvm#15574

}

ur_result_t MemBuffer::free() {
for (const auto &[_, Ptr] : Allocations) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIR compiling on jf cluster with g++7 being newest compiler avail there reports warning about "_" as unused variable. These were the only fixes needed to make UR compilable there.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not worry about warnings in an old compiler. Just don't set -Werror.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, reverted

}

void context_t::initLayers() {
for (auto &[layer, _] : layers) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

Remove excessive semicolons.
Use python3.6 friendly alias instead of text param.
@lslusarczyk lslusarczyk force-pushed the compilation_fixes_for_sles branch from fcdcc75 to 97a22aa Compare October 3, 2024 09:31
@lslusarczyk
Copy link
Contributor Author

@pbalcer , if all is OK please merge

@pbalcer pbalcer merged commit 7b4bc76 into oneapi-src:main Oct 4, 2024
78 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

common Changes or additions to common utilities conformance Conformance test suite issues. level-zero L0 adapter specific issues loader Loader related feature/bug sanitizer Sanitizer layer issues/changes/specification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants